package com.wll.libcommon.utils;

//import androidx.camera.core.AspectRatio;
//import androidx.camera.core.CameraSelector;
import androidx.camera.core.ImageCapture;

/**
 * created by detachment on 2020/11/15
 */
public class CameraUtils {
//    public static boolean isFlashAuto(int flashMode) {
//        return flashMode == ImageCapture.FLASH_MODE_AUTO;
//    }
//    public static boolean isFlashOn(int flashMode) {
//        return flashMode == ImageCapture.FLASH_MODE_ON;
//    }
//    public static boolean isFlashOff(int flashMode) {
//        return flashMode == ImageCapture.FLASH_MODE_OFF;
//    }
//
//    public static boolean isFacingBack(int facing) {
//        return facing == CameraSelector.LENS_FACING_BACK;
//    }
//
//    public static boolean isRatio_16_9(int ratio) {
//        return ratio == AspectRatio.RATIO_16_9;
//    }
}
